package com.atgouwu.scmall.seckill.feign;

import com.atgouwu.scmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("member")  //接口上(被调用者服务名,必须已注册到nacos)
public interface MemberFeignService {

    @GetMapping("/member/member/orderTOMember")  //全路径(同被调用者Controller类方法,不写方法体)
    public R orderTOMember(@RequestParam("id") String id);  //参数必须加注解

}
